package com.iptv.grape.net.Entity;

import com.google.gson.Gson;

public class ChannelDetailsResult extends NetBaseResult{
    private ChannelDetailsDataResult data;

    public ChannelDetailsDataResult getData() {
        return data;
    }

    public void setData(ChannelDetailsDataResult data) {
        this.data = data;
    }

    public static ChannelDetailsResult createForJson(String json){
        try {
            ChannelDetailsResult res = new Gson().fromJson(json, ChannelDetailsResult.class);
            return res;
        }
        catch (Exception e){
            //Log.e("GrapeTVChannelTypeResult",e.getMessage() );
            return null;
        }
    }
}
